package cn.easybuy.dao;

import cn.easybuy.entity.PageInfo;
import cn.easybuy.entity.User;

import java.sql.SQLException;
import java.util.List;

import cn.easybuy.entity.User;

import java.sql.SQLException;

public interface UserDAO {

    int addUser(User u) throws SQLException;

    int delUsers(User u) throws SQLException;

    int updUsers(User u) throws SQLException;

    List<User> getListAll() throws SQLException;

    PageInfo<User> listPage(PageInfo<User> page) throws Exception;
    // 注册用户功能
    int AddNews(User user) throws SQLException;
    // 重复手机号邮箱验证
    User selectUserInfo(User user) throws SQLException;
    // 用户登录
    User checkLogin(User user) throws SQLException;
}
